package org.wanghong.gift.exception.statuCode;

public enum StatusCode {
        CODE_200(200,"操作成功！"),
        CODE_500(500,"系统繁忙，稍后重试！"),
        CODE_400(4000001,"参数不正确！"),
        CODE_400_TENANT_EXSIT(4000002,"该店铺已经存在！"),
        CODE_400_USER_EXSIT(4000004,"该手机已经被注册！直接登陆使用！"),
        CODE_400_TENANT_ADMIN_EXSIT(4000003,"店铺管理员已存在！"),
        CODE_400_CODE_NOT_EQUALS(4000005,"验证码不正确"),
        CODE_400_CODE_USERNAME_OR_PASSWORD_ERROR(4000006,"用户名或密码不正确！");


        //枚举属性
        private int code;
        private String message;

        public int getCode() {
            return code;
        }

        public void setCode(int code) {
            this.code = code;
        }

        public String getMessage() {
            return message;
        }

        public void setMessage(String message) {
            this.message = message;
        }

        StatusCode(int code, String message) {
            this.code = code;
            this.message = message;
        }
}
